﻿using GetMan.Core.DB.Entities;
using System.Collections.Generic;

namespace GetMan.Core.DB.Services
{
    public interface IBaseService<TEntity, TId> where TEntity : Entity
    {
        TId Add(TEntity entity);

        int Update(TEntity entity);

        int Delete(TId id);
        TEntity Get(TId id);
        List<TEntity> GetAll();
    }
}